const _import = require('./_import_' + process.env.NODE_ENV) // 开发模式下不采用组件懒加载，避免太多页面组件懒加载造成webpack热更新太慢
import Layout from '@/views/layout/Layout'
export default [
  { path: '/404', component: _import('404'), hidden: true },
  { path: '/login',
    component: _import('login/index'),
    hidden: true,
    meta: {
      requireAuth: false
    }
  },
  {
    path: '/',
    component: Layout,
    redirect: '/admin',
    name: 'Layout',
    hidden: true,
    meta: {
      requireAuth: true
    }
  },
  { path: '*', redirect: '/404', hidden: true }
]
